        <div class="ranked_sales_wrap margintop1 float1">
        <?php
		$query = array(
            'conditions' => array('goods.shop_id'=>$SHOP['id'],'goods.is_hot'=>1,'goods.is_on_sale'=>1,'goods.lock_flg'=>0),
            'order'=>'sort_order asc,id desc',
            'limit'=>8,
			'fields' => array('goods.*'), 
		);
		//热销		
        $hot_goods = POP::exe('[@@:UM goods][@@:QU find:all]',$query);

		$query = array(
            'conditions' => array('goods.shop_id'=>$SHOP['id'],'goods.is_new'=>1,'goods.is_on_sale'=>1,'goods.lock_flg'=>0),
            'order'=>'sort_order asc,id desc',
            'limit'=>8,
			'fields' => array('goods.*'), 
		);
        //新品		
        $new_goods = POP::exe('[@@:UM goods][@@:QU find:all]',$query);			
        ?>			
        	<div class="ranked_sales_hd">
            	<ul class="rank">
                	<li class="selected1"><span class="rank_cat">销量排行</span></li>
                    <li><span class="rank_cat">最新上架</span></li>
                </ul>
                <div class="right1"><a href="<?php echo $this->_url('shop/products/'.$SHOP['id']);?>">+更多</a></div>
                
            </div>
            <ul class="rank_list_content display1">
            <?php if($hot_goods) {
            foreach($hot_goods as $value){?>			
            	<li>
                	<a href="<?php echo $this->_url('shop/productshow/'.$value['goods']['id']);?>" class="prot_img_a"><img src="<?php echo  $value['goods']['is_set_image'] ? $value['goods']['goods_thumb'] : $this->_webroot('photo/sale_prot_img1.gif');?>"  onerror="this.src='<?php echo $this->_webroot('photo/sale_prot_img1.gif'); ?>'" width="41" height="37" /></a>
                    <div class="rank_prot_content">
                    	<a href="<?php echo $this->_url('shop/productshow/'.$value['goods']['id']);?>" class="rank_prot_title">￥<?php echo  $value['goods']['goods_price'];?>元</a>
                        <p class="rank_prot_p"><?php echo  $value['goods']['goods_name'];?></p>
                    </div>
                </li>
          <?php } }?>
			
                <div class="clear"></div>
            </ul>
            <ul class="rank_list_content">
            <?php if($new_goods) {
            foreach($new_goods as $value){?>			
            	<li>
                	<a href="<?php echo $this->_url('shop/productshow/'.$value['goods']['id']);?>" class="prot_img_a"><img src="<?php echo  $value['goods']['is_set_image'] ? $value['goods']['goods_thumb'] : $this->_webroot('photo/sale_prot_img1.gif');?>"  onerror="this.src='<?php echo $this->_webroot('photo/sale_prot_img1.gif'); ?>'" width="41" height="37" /></a>
                    <div class="rank_prot_content">
                    	<a href="<?php echo $this->_url('shop/productshow/'.$value['goods']['id']);?>" class="rank_prot_title">￥<?php echo  $value['goods']['goods_price'];?>元</a>
                        <p class="rank_prot_p"><?php echo  $value['goods']['goods_name'];?></p>
                    </div>
                </li>
          <?php } }?>               
                <div class="clear"></div>
            </ul> 
            <div class="clear"></div>          
          
        </div>